<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/23
 * Time: 16:34
 */

namespace App\Game\Traits;


trait Cq9Trait
{
    public function cq9Request($method='POST',$url,$params)
    {
        $this->headers = [
            "Authorization" => $this->token,
            "Content-Type" => " application/x-www-form-urlencoded"
        ];

        $result = $this->request($method, $url, $params, $this->headers);
        return json_decode($result, true);
    }
}